package com.zzptc.sky.baidudemo.activities;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.LinearLayout;

import com.zzptc.sky.baidudemo.R;
import com.zzptc.sky.baidudemo.base.BaseActivity;

public class FamilyGuardianActivity extends BaseActivity implements View.OnClickListener {

    private Toolbar toolbar_family;
    private LinearLayout ll_one_key_sos;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_family_guardian);

        toolbar_family = (Toolbar) findViewById(R.id.toolbar_family);
        ll_one_key_sos = (LinearLayout) findViewById(R.id.ll_one_key_sos);

        setSupportActionBar(toolbar_family);

        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);

        ll_one_key_sos.setOnClickListener(this);
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_family_guardian;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.ll_one_key_sos:
                startActivity(new Intent(this,OneKeySOSActivity.class));
                break;
        }
    }
}
